using UnityEngine;

public class PanelLeaderBoardUI : MonoBehaviour
{
	public enum TypeLeaderBoard
	{
		TopPlayers = 0,
		TopLeague = 1,
		TopFriends = 2
	}

	public static PanelLeaderBoardUI instance;

	[SerializeField]
	private SelectableButtonController selectableButtonController;

	private void Awake()
	{
		instance = this;
	}

	private void OnDestroy()
	{
		instance = null;
	}

	private void OnEnable()
	{
		if (selectableButtonController.selectedButton == null && (bool)selectableButtonController.allButtons[0])
		{
			selectableButtonController.allButtons[0].Select(true);
		}
	}

	public void Hide()
	{
		base.gameObject.SetActive(false);
	}
}
